<template>
	<view>
		<u-navbar :is-back="false" title="帖子" :background="{ background: '#a0cfff' }" title-color="#FFFFFF"></u-navbar>
		<u-tabs :list="list" :is-scroll="false" :current="current" @change="change" style="position: fixed;top: 183rpx;left: 0;right: 0;z-index: 999;"></u-tabs>
		<imv v-if="current == 0"></imv>
		<imvShop v-if="current == 1"></imvShop>
	</view>
</template>

<script>
	import imv from '../inv/inv'
	import imvShop from '../inv/invShop'
	export default {
		components:{
			imv,
			imvShop
		},
		data() {
			return {
				current: 0,
				list: [{
					name: '帖子'
				}, {
					name: '求购'
				}],
			}
		},
		methods: {
			change(index){
				this.current = index;
			}
		}
	}
</script>

<style>

</style>
